package com.bqy.myokgo.base.manager.event;

import org.greenrobot.eventbus.EventBus;

/**
 * 熊猫先生
 * 2019/3/6:15:14
 */

public class MyEvent {
    public static void register(Object subscriber) {
        EventBus.getDefault().register(subscriber);
    }

    public static void unregister(Object subscriber) {
        EventBus.getDefault().unregister(subscriber);
    }

    public static void sendEvent(MessageEvent event) {
        EventBus.getDefault().post(event);
    }

    public static void sendStickyEvent(MessageEvent event) {
        EventBus.getDefault().postSticky(event);
    }
}
